﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TalentPools.DAL;
using TalentPools.Model;

namespace TalentPools.BLL
{
    public class SearchResumeManager
    {
        /// <summary>
        /// 根据查询条件搜索简历，返回分页后的数据集对象
        /// </summary>
        /// <param name="workCatagory">职业分类</param>
        /// <param name="workArea">工作地点</param>
        /// <param name="workYear">工作年限</param>
        /// <param name="searchKey">搜索关键词</param>
        /// <returns></returns>
        public DataSet GetResumeByPage(int pageIndex, int pageSize, string workCatagory, string workArea, string workYear, string searchKey)
        {
            return new SearchResumeService().GetResumeByPage(pageIndex, pageSize, workCatagory, workArea, workYear, searchKey);
        }
        /// <summary>
        /// 根据查询条件搜索简历，返回分页后的数据集对象
        /// </summary>
        /// <param name="workCatagory">职业分类</param>
        /// <param name="workArea">工作地点</param>
        /// <param name="workYear">工作年限</param>
        /// <param name="searchKey">搜索关键词</param>
        /// <returns></returns>
        public DataSet GetResumeByPage1(int pageIndex, int pageSize, string workCatagory, string workArea, string workYear, string searchKey)
        {
            return new SearchResumeService().GetResumeByPage1(pageIndex, pageSize, workCatagory, workArea, workYear, searchKey);
        }
        public int GetResumeCount(string workCatagory, string workArea, string workYear, string searchKey)
        {
            return new SearchResumeService().GetResumeCount(workCatagory, workArea, workYear, searchKey);
        }
        public int GetResumeCount1(string workCatagory, string workArea, string workYear, string searchKey)
        {
            return new SearchResumeService().GetResumeCount1(workCatagory, workArea, workYear, searchKey);
        }
        public DataSet GetHeadHuntPersonTop()
        {
            return new SearchResumeService().GetHeadHuntPersonTop();
        }

        public DataSet GetHuntByPage(int pageIndex, int pageSize, string workCatagory, string workArea, string workYear, string searchKey)
        {
            return new SearchResumeService().GetHuntByPage(pageIndex, pageSize, workCatagory, workArea, workYear, searchKey);
        }

        public int GetHuntCount(string workCatagory, string workArea, string workYear, string searchKey)
        {
            return new SearchResumeService().GetHuntCount(workCatagory, workArea, workYear, searchKey);
        }

        public DataSet GetNewResume()
        {
            return new SearchResumeService().GetNewResume();
        }
    }
}
